package com.eastfair.venueservice.vo;

import com.eastfair.vo.BaseVO;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 实体类
 * 服务预订项
 * </p>
 *
 * @author linan
 * @since 2022-08-05
 */
@Data
@ApiModel(value = "ServiceBookingVO", description = "服务预订项")
public class ServiceBookingSimpleVO extends BaseVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 服务名称
     */
    @ApiModelProperty(value = "服务名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "服务名称长度不能超过255")
    private String serviceName;

    /**
     * 小计
     */
    @ApiModelProperty(value = "小计")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal subtotalPrice;

    /**
     * 预定数量
     */
    @ApiModelProperty(value = "预定数量")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long bookingNum;


    /**
     * 服务名称前端用
     */
    @ApiModelProperty(value = "服务名称前端用")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "服务名称长度不能超过255")
    private String name;


    /**
     * 预定数量前端用
     */
    @ApiModelProperty(value = "预定数量前端用")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long value;

    /**
     * 百分比
     */
    @ApiModelProperty(value = "百分比")
    private Integer percent;
}
